#ifndef PAGESPDLMTREASON_H
#define PAGESPDLMTREASON_H

#include <QWidget>
#include <QLabel>
#include <QDebug>
#include "global_def.h"

namespace Ui {
class PageSpdLmtReason;
}

class PageSpdLmtReason : public QWidget
{
    Q_OBJECT

public:
    explicit PageSpdLmtReason(QWidget *parent = nullptr);
    ~PageSpdLmtReason();
    void setEPFltCount(uint8_t cnt);
    void setEDFltCount(uint8_t cnt);
    void setTracFltCount(uint8_t cnt);
    void setSpeedlimtReason(uint8_t index, bool xActive);
signals:
    void signal_go_back();
    void signal_speedlimt_act(bool xAct);
private slots:
    void on_Btn_Return_clicked();
private:
    Ui::PageSpdLmtReason *ui;
    QList<QLabel*> m_lReasonList;
    QList<uint8_t> m_lReasonStat;
};

#endif // PAGESPDLMTREASON_H
